filename = "pi_million_digits.txt"
with open(filename) as file_object:
    lines = file_object.readlines()#每一行都读出来

pi_string = ''
for line in lines:
    pi_string +=line.strip()

birthday = input("输入您的生日(格式为mmddyy):")
if birthday in pi_string:
    print("您的生日在前一百万位的圆周率中")
else:
    print("您的生日不在前一百万位的圆周率中")
# print(f"{pi_string[:52]}.....")
# print(len(pi_string))